package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Customer;
import cn.wolfcode.crm.qo.CustomerQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICustomerService {
    void  save(Customer customer);

    void deleteByPrimaryKey(Long id);

    void updateByPrimaryKey(Customer customer);

    Customer get(Long id);

    List<Customer> selectAll();

    PageInfo query(CustomerQuery qo);

    String checkTel(String tel);

    Customer checkTelById(String tel, Long id);

    List<Customer> selectByStatusId(int i,int k);

    PageInfo queryPool(CustomerQuery qo);
}